package com.itheima.chapter10.thread.demo7;

//设置线程名称2
public class Demo {
    public static void main(String[] args) {
       /* MyThread t1 =new MyThread();
        t1.setName("线程一");
        MyThread t2 =new MyThread();
        t2.setName("线程二");
        MyThread t3 =new MyThread();
        t3.setName("线程三");
        t1.start();
        t2.start();
        t3.start();*/
        new MyThread("线程一").start();
        new MyThread("线程二").start();
        new MyThread("线程三").start();
    }
}
